<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Dokumentacja klasy ShopDAO.VoucherDAO</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li class="current"><a href="annotated.html"><span>Klasy</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Lista&nbsp;klas</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarchia&nbsp;klas</span></a></li>
      <li><a href="functions.html"><span>Składowe&nbsp;klas</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespace_shop_d_a_o.html">ShopDAO</a>.<a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html">VoucherDAO</a>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja klasy ShopDAO.VoucherDAO</h1><!-- doxytag: class="ShopDAO::VoucherDAO" -->
<p><a href="class_shop_d_a_o_1_1_voucher_d_a_o-members.html">Lista wszystkich składowych.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#aa7efce189aae62d4d74b381f1bc43164">VoucherDAO</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#a9a6f0b5328a65a988266e02171a8ff3b">GetCustomerVouchers</a> (int CustomerId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera informacje o kuponach rabatowych kupującego. (Gets information about the buyer’s Vourchers.).  <a href="#a9a6f0b5328a65a988266e02171a8ff3b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#ad6e0310a41e782865f00f361c1212a48">GetGeneratedRealizationVoucher</a> (int RealizationId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera informacje o stworzonym kuponie rabatowym. (Gets information about the created discount voucher. ).  <a href="#ad6e0310a41e782865f00f361c1212a48"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#ad5537731df1d3d191bcd8aece3478815">GetUsedRealizationVoucher</a> (int RealizationId)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera informacje o wykorzystanym kuponie rabatowym. (Gets information about the discount voucher.).  <a href="#ad5537731df1d3d191bcd8aece3478815"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#a6cf57868f34ccc37ead7f73ece94b949">GetVoucherByGuid</a> (string VoucherCode, bool?Used)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera informacje o wybranym kuponie rabatowym. (Gets information about the selected voucher.).  <a href="#a6cf57868f34ccc37ead7f73ece94b949"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#ab48bc9a632fbf60dbc687654c7688258">SaveVoucher</a> (<a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> <a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zapisuje informacje o nowym kuponie rabatowym. (Saves information about the new discount voucher.).  <a href="#ab48bc9a632fbf60dbc687654c7688258"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int[]&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#a223375ae958a9cf2f2187b856052e14a">GetAllVoucherTypesIDs</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera unikalne ID wszystkich rodzajów kuponów rabatowych z bazy. (Gets unique ID of all types of discount vouchers from the database.).  <a href="#a223375ae958a9cf2f2187b856052e14a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#ac634d63b4551e3dcb8f4d15dbacd7326">GetVouchers</a> (ref int pageNumber, int pageSize, out int Count, bool used)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera listę kuponów rabatowych (Downloads list of discount vouchers).  <a href="#ac634d63b4551e3dcb8f4d15dbacd7326"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#a1aa3bfb04865e51b7eed1049b92cfb18">GenerateVouchers</a> (<a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> <a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>, int count)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tworzy nowy kupon rabatowy (Creates new discount voucher).  <a href="#a1aa3bfb04865e51b7eed1049b92cfb18"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_shop_d_a_o_1_1_voucher_d_a_o.html#a027fa974182a16c9f99de312e5519765">GetVouchersByIDs</a> (string IDs)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pobiera kupon rabatowy na podstawie jego ID (Downloads discount voucher on the basis of it ID).  <a href="#a027fa974182a16c9f99de312e5519765"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00010">10</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="aa7efce189aae62d4d74b381f1bc43164"></a><!-- doxytag: member="ShopDAO::VoucherDAO::VoucherDAO" ref="aa7efce189aae62d4d74b381f1bc43164" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ShopDAO.VoucherDAO.VoucherDAO </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00019">19</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="a1aa3bfb04865e51b7eed1049b92cfb18"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GenerateVouchers" ref="a1aa3bfb04865e51b7eed1049b92cfb18" args="(Voucher Voucher, int count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool ShopDAO.VoucherDAO.GenerateVouchers </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&nbsp;</td>
          <td class="paramname"> <em>Voucher</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>count</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tworzy nowy kupon rabatowy (Creates new discount voucher). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Voucher</em>&nbsp;</td><td>Obiekt zawierająch wszystkie informacje znajdujace sie w kuponie rabatowym (Object containing all information included in the discount voucher)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>Ilość kuponow do utworzenia (Number of vouchers to be created)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Jesli operacja tworzenia zakonczona sukcesem zwraca 'true' (Returns ‘true’ if voucher creation succeeded)</dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00417">417</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a223375ae958a9cf2f2187b856052e14a"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetAllVoucherTypesIDs" ref="a223375ae958a9cf2f2187b856052e14a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int [] ShopDAO.VoucherDAO.GetAllVoucherTypesIDs </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera unikalne ID wszystkich rodzajów kuponów rabatowych z bazy. (Gets unique ID of all types of discount vouchers from the database.). </p>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca tablicę obiektów Int zawierającą ID wszystkich rodzajów kuponów rabatowych. (Returns Int objects table containing ID of all types of discount vouchers.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00309">309</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a9a6f0b5328a65a988266e02171a8ff3b"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetCustomerVouchers" ref="a9a6f0b5328a65a988266e02171a8ff3b" args="(int CustomerId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&gt; ShopDAO.VoucherDAO.GetCustomerVouchers </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>CustomerId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera informacje o kuponach rabatowych kupującego. (Gets information about the buyer’s Vourchers.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>CustomerId</em>&nbsp;</td><td>Unikalne ID kupującego. (Unique buyer ID.) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca listę obiektów Voucher zawierającą informacje o wszystkich kuponach rabatowych wybranego klienta. (Returns list of Vourcher objects containing information about all discount vouchers for a selected customer.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00036">36</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad6e0310a41e782865f00f361c1212a48"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetGeneratedRealizationVoucher" ref="ad6e0310a41e782865f00f361c1212a48" args="(int RealizationId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> ShopDAO.VoucherDAO.GetGeneratedRealizationVoucher </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>RealizationId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera informacje o stworzonym kuponie rabatowym. (Gets information about the created discount voucher. ). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>RealizationId</em>&nbsp;</td><td>Unikalne ID zamówienia. (Unique order ID.) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca obiekt Voucher zawierający informacje o stworzonym kuponie rabatowym. (Returns object that contains information about the created discount voucher.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00093">93</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ad5537731df1d3d191bcd8aece3478815"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetUsedRealizationVoucher" ref="ad5537731df1d3d191bcd8aece3478815" args="(int RealizationId)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> ShopDAO.VoucherDAO.GetUsedRealizationVoucher </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>RealizationId</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera informacje o wykorzystanym kuponie rabatowym. (Gets information about the discount voucher.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>RealizationId</em>&nbsp;</td><td>Unikalne ID zamówienia. (Unique order ID.) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca obiekt Voucher zawierający informacje o wykorzystanym kuponie rabatowym. (Returns an object that contains information about the granted discount voucher.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00147">147</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a6cf57868f34ccc37ead7f73ece94b949"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetVoucherByGuid" ref="a6cf57868f34ccc37ead7f73ece94b949" args="(string VoucherCode, bool?Used)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a> ShopDAO.VoucherDAO.GetVoucherByGuid </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>VoucherCode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool?&nbsp;</td>
          <td class="paramname"> <em>Used</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera informacje o wybranym kuponie rabatowym. (Gets information about the selected voucher.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>VoucherCode</em>&nbsp;</td><td>Unikalny identyfikator Guid. (Unique Guid.) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Used</em>&nbsp;</td><td>Obiekt bool lub wartość 'null'. (Int object or 'null' value.) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca obiekt Voucher zawierający informacje o kuponie rabatowym. (Returns an object that contains information about the discount voucher.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00205">205</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac634d63b4551e3dcb8f4d15dbacd7326"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetVouchers" ref="ac634d63b4551e3dcb8f4d15dbacd7326" args="(ref int pageNumber, int pageSize, out int Count, bool used)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&gt; ShopDAO.VoucherDAO.GetVouchers </td>
          <td>(</td>
          <td class="paramtype">ref int&nbsp;</td>
          <td class="paramname"> <em>pageNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pageSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out int&nbsp;</td>
          <td class="paramname"> <em>Count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>used</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera listę kuponów rabatowych (Downloads list of discount vouchers). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>pageNumber</em>&nbsp;</td><td>Iliść stron na których wyświetlone zostaną rekordy (Number of pages where record will be displayed)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>pageSize</em>&nbsp;</td><td>Iliść rekordów wyświetlonych na stronie (Number of recors displayed on the page)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>Count</em>&nbsp;</td><td>Ilość rekordów zwruconych w zapytaniu(Number of record returned in query)</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>used</em>&nbsp;</td><td>Czy użyty (Whether used or not)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista obiektów typu Voucher zawierajaca informacje o kuponie (List of Voucher objects containing information about the discount voucher)</dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00349">349</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a027fa974182a16c9f99de312e5519765"></a><!-- doxytag: member="ShopDAO::VoucherDAO::GetVouchersByIDs" ref="a027fa974182a16c9f99de312e5519765" args="(string IDs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&gt; ShopDAO.VoucherDAO.GetVouchersByIDs </td>
          <td>(</td>
          <td class="paramtype">string&nbsp;</td>
          <td class="paramname"> <em>IDs</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Pobiera kupon rabatowy na podstawie jego ID (Downloads discount voucher on the basis of it ID). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>IDs</em>&nbsp;</td><td>Id kuponu rabatowego (Discount voucher ID)</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Lista obiektów typu Voucher zawierajaca informacje o kuponie (List of Voucher objects containing information about the vouche)</dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00453">453</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ab48bc9a632fbf60dbc687654c7688258"></a><!-- doxytag: member="ShopDAO::VoucherDAO::SaveVoucher" ref="ab48bc9a632fbf60dbc687654c7688258" args="(Voucher Voucher)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ShopDAO.VoucherDAO.SaveVoucher </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_shop_model_1_1_voucher.html">Voucher</a>&nbsp;</td>
          <td class="paramname"> <em>Voucher</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zapisuje informacje o nowym kuponie rabatowym. (Saves information about the new discount voucher.). </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>Voucher</em>&nbsp;</td><td>Obiekt Voucher zawierający informacje o kuponie rabatowym. (Voucher object contains information about discount voucher.) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Zwraca:</b></dt><dd>Zwraca obiekt Int. Jeśli zwrócona wartość jest równa '-1' wystąpił błąd z zapisam kuponu do bazy. (Returns Int object. If the returned value is equal ‘-1', error with saving discount voucher to the database has occurred.) </dd></dl>

<p>Definicja w linii <a class="el" href="_voucher_d_a_o_8cs_source.html#l00260">260</a> pliku <a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a>.</p>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z pliku:<ul>
<li>D:/CentrumXP/e-Commerce/eCommerceDev/SklepDAO/<a class="el" href="_voucher_d_a_o_8cs_source.html">VoucherDAO.cs</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:22 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
